package com.example.design.patterns.geekbang.行为型.职责链模式.中途停止.实现方式一.demo;

/**
 * 具体的处理器类
 */
public class HandlerA extends Handler {
    @Override
    public void handle() {
        boolean handled = false;
        //...
        if (!handled && successor != null) {
            System.out.println("A处理");
            successor.handle();
        }
    }
}
